package service.impl;

import dao.ProductDao;
import dao.impl.ProductDaoImpl;
import entity.Product;
import service.ProductService;

import java.util.List;

public class ProductServiceImpl implements ProductService {
    ProductDao productDao = new ProductDaoImpl();
    @Override
    public List<Product> info() {
        return productDao.info();
    }

    @Override
    public int inset(Product product) {
        return productDao.inset(product);
    }

    @Override
    public int delete(int id) {
        return productDao.delete(id);
    }

    @Override
    public int update(Product product) {
        return productDao.update(product);
    }

    @Override
    public Product select(int id) {
        return productDao.select(id);
    }
}
